package com.im.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

public class GroupMemberVO {


    @TableField("group_id")
    @Schema(description = "群聊ID")
    private Integer groupId;

    @TableField("user_id")
    @Schema(description = "用户ID")
    private Integer userId;

    @TableField("role")
    @Schema(description = "角色(0:成员, 1:管理员, 2:群主)")
    private Integer role;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "加入时间")
    private LocalDateTime createTime; // 自动填充

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime; // 自动填充
}
